class SupervisionController < ApplicationController
  
  layout 'layout'
  
  def index
    @salles = Salle.all(:order =>"ordre_salle")
    @machines = Machine.find_all_by_salle_id(0, :order =>"ordre")
    @title = "Supervision"
    #if request.xml_http_request?
    #  render :partial => "list", :locals => { :machines => @machines, :notice_machine_sans_salle => '' }
    #end
    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @machines  }
      #format.xml  { render :xml => @salles  }      
    end
  end
end
